Pod::Spec.new do |s|
  s.name         = "glog"
  s.version      = "0.3.5"
  s.summary      = "Google logging module"
  s.homepage     = "https://github.com/google/glog"
  s.license      = { :type => "New BSD" }
  s.authors      = { "Google" => "opensource@google.com" }
  s.source       = { :git => "https://github.com/google/glog.git", :tag => "v0.3.5" }

  s.prepare_command = <<-CMD
    ./configure --disable-shared --enable-static --host=arm-apple-darwin --with-pic || true
  CMD

  s.source_files  = "src/**/*.{h,cc}"
  s.public_header_files = "src/glog/*.h"
  s.requires_arc  = false

  s.compiler_flags = "-w -DGLOG_OS_MACOSX"
  s.pod_target_xcconfig = {
    'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/glog/src'
  }
end
